<extend name="Public:base" />
<block name="title">登录</block>
<block name="content">
    <div class="login_in dengl_form">
        <div class="dl_touxiang">
            <img src="img/touxiang.png" alt="">
        </div>
        <ul class="clearfix">
            <li style="border-bottom:1px solid #cdcdcd">
                <div class="login_tips ltips01">
                    <input class="in_style" id="" type="text" placeholder="输入用户名" tabindex="1" >
                    <i class="picUser"></i>
                </div>
            </li>
            <li>
                <div class="login_tips ltips02">
                    <input class="in_style in_style_yzm" type="password" id="userPass" placeholder="请输入密码：56786879" tabindex="2">
                    <i class="picPassWord"></i>
                </div>
            </li>
        </ul>
        <div class="btn_submit">
            <input id="loginButton" class="input_sub login_btn btn_primary" name="" type="button" value="登录" tabindex="3">
        </div>
    </div>
<script type="text/javascript">
$("#golog").on('click', function(e){
    var password = $("#password").val();
    var phone = $("#phone").val();
    
    var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/;

    if(!myreg.test(phone)) { 
        alert('请输入有效的手机号码！'); 
        $("#phone").focus();
        return false; 
    }

    if(password.length < 6) {
        alert('密码长度至少为6位！');
        $("#password").focus();
        return false;
    }

    return true;
});
</script>
</block>